package com.design.pattern.clinic.structural.pipeline.calcule;

import com.design.pattern.clinic.structural.pipeline.Pipe;
import org.springframework.stereotype.Service;

@Service
public class AddStep implements Pipe<AdditionalInput,Integer> {
    @Override
    public Integer process(AdditionalInput input) throws StepException {
        return input.getA()+input.getB();
    }
}
